package com.app.couponsharelife.ui.view
import android.content.Context
import net.lucode.hackware.magicindicator.buildins.commonnavigator.titles.SimplePagerTitleView

/**
 *Created by xct on 2019/5/13
 *Description:选中文字加粗，未选中不加粗
 */
class ScaleGeneralTitleView(context: Context): SimplePagerTitleView(context) {
    override fun onDeselected(index: Int, totalCount: Int) {
        super.onDeselected(index, totalCount)
        paint.isFakeBoldText=false
    }

    override fun onSelected(index: Int, totalCount: Int) {
        super.onSelected(index, totalCount)
        paint.isFakeBoldText=true
    }
}